<!-- 兄弟组件传参  借用bus -->
<template>
    <div style="background-color: darkgoldenrod;">
        {{ flag }}
    </div>
</template>

<script setup lang='ts'>
import { ref } from 'vue'
import Bus from '../Bus';

let flag = ref(false)
Bus.on('on-click', (params: boolean) => {
    flag.value = params
})
</script>

<style scoped lang="scss"></style>